package com.jic.point.mapper;
import java.math.BigDecimal;
import java.util.List;
import com.jic.point.model.entity.ConfPointCard;
import com.jic.point.model.entity.ConfPointCardBatch;
import org.apache.ibatis.annotations.Param;

public interface ConfPointCardMapper {
	/**
	 * CONF_POINT_CARD插入数据
	 * @param confPointCard 入参实体类
	 */
	int insert (ConfPointCard confPointCard);

	/**
	 * CONF_POINT_CARD插入数据
	 * @param confPointCard 入参实体类
	 */
	int insertSelective (ConfPointCard confPointCard);

	/**
	 * CONF_POINT_CARD根据表对象数据修改数据
	 * @param confPointCard 入参实体类
	 */
	int updateByPrimaryKey (ConfPointCard confPointCard);

	/**
	 * CONF_POINT_CARD根据表对象数据修改数据
	 * @param confPointCard 入参实体类
	 */
	int updateByPrimaryKeySelective (ConfPointCard confPointCard);

	/**
	 * CONF_POINT_CARD根据id删除数据
	 * @param confPointCard 入参实体类
	 */
	int deleteByPrimaryKey (ConfPointCard confPointCard);

	/**
	 * CONF_POINT_CARD根据主键查询数据
	 * @param confPointCard 入参实体类
	 */
	ConfPointCard selectByPrimaryKey (ConfPointCard confPointCard);

	/**
	 * CONF_POINT_CARD根据主键查询数据
	 * @param confPointCard 入参实体类
	 */
	List<ConfPointCard> listPageBySelective (ConfPointCard confPointCard);

	/**
	 * CONF_POINT_CARD查询数据
	 * @param confPointCard 入参实体类
	 */
	List<ConfPointCard>  selectBySelective (ConfPointCard confPointCard);

	Integer volumeProductionCardPoint(@Param("list")List<ConfPointCard> list);

	Integer batchNumber();

    Integer getBatchNumber();

    Integer releasePointCart(@Param("code") String item);

	BigDecimal releasePointCartTotalPoint(@Param("code") String releaseBatch);

	ConfPointCardBatch selectByPrimaryCode(String item);

    ConfPointCard activateCardPoint(ConfPointCard confPointCard);

    List<ConfPointCard> count();
}
